// 用户相关接口封装
import {get,post} from '../utils/request'

// 用户接口的类型
interface User{
    img:string,
    username:string,
    email:string,
    password:string
}

interface Login{
    username:string,
    password:string
}

export const register=(params:User)=>{
    return post('/user/register',params).then(response=>response)
}

export const login=(params:Login)=>{
    return post('/user/login',params).then(response=>response)
} 

export const reset=(params:Login)=>{
    return post('/user/login',params).then(response=>response)
} 